package book_management.operation.impl;

import book_management.book.BookList;
import book_management.operation.IOperation;

//归还书籍操作
public class ReturnOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("请输入你要归还的书籍名称：");
        String nameBook = scanner.nextLine();
        if(bookList.contains(nameBook)){
            bookList.ReturnBook(nameBook);
            System.out.println("归还成功~");
        }else{
            System.out.println("归还书籍名称错误~");
        }
    }
}
